package com.m31skytech.dungeonstool;

import com.m31skytech.dungeonstool.blocks.AirWallBlock;
import com.m31skytech.dungeonstool.blocks.DungeonControlBlock;
import com.m31skytech.dungeonstool.blocks.TeleportControlBlock;
import com.m31skytech.dungeonstool.blocks.TeleportPointBlock;
import net.minecraft.world.level.block.Block;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

/**
 * @description: default
 * @date: 2024/6/16 23:21
 */
public class BlockRegistry {
    public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, DungeonsTool.MODID);
    //空气墙方块
    public static final RegistryObject<Block> AIR_WALL_BLOCK = BLOCKS.register("air_wall_block", AirWallBlock::new);
    public static final RegistryObject<Block> DUNGEON_CONTROL_BLOCK = BLOCKS.register("dungeon_control_block", DungeonControlBlock::new);
    public static final RegistryObject<Block> TELEPORT_CONTROL_BLOCK = BLOCKS.register("teleport_control_block", TeleportControlBlock::new);
    public static final RegistryObject<Block> TELEPORT_POINT_BLOCK = BLOCKS.register("teleport_point_block", TeleportPointBlock::new);
    public static void register() {
        // 空方法体，只是为了触发类加载
    }
}
